﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="SearchEcolifeID.ascx.vb" Inherits="WebForm_ManageEcolife_SearchEcolifeID" %>
<%@ Register src="~/WebForm/CommonControl/VolunteerQueryControl.ascx" tagname="VolunteerQueryControl" tagprefix="uc1" %>

<table width="100%">
    <tr>
        <td align="left">
            <fieldset align="left">
                <legend>
                    <asp:Label ID="lblSearchEcolifeID" runat="server" meta:resourcekey="lblSearchEcolifeID"></asp:Label>
                </legend>
                <table>
                    <tr>
                        <td align="center">
                            <uc1:VolunteerQueryControl ID="VolunteerQueryControl1" runat="server" LoadOnStartUp="true" />
                        </td>
                    </tr>
                    <tr>
                        <td align="center">
                            <asp:Button ID="btnQuery" CssClass="button" SkinID="button" runat="server" meta:resourcekey="btnQuery" />
                        </td>
                    </tr>
                </table>
            </fieldset>
        </td>
    </tr>
    <tr>
        <td align="left">
            <fieldset align="left">
                <legend>
                    <asp:Label ID="lblEcolifeMatch" runat="server" meta:resourcekey="lblEcolifeMatch"></asp:Label>
                </legend>
                <table>
                    <tr>
                        <td align="center">
                            <My:MyGridView ID="gv" Width="650px" DataKeyNames="EcolifeID" runat="server" SkinID="pager" AllowHoverSelect="false" meta:resourcekey="gv" AllowSorting="true">
                                <Columns>
                                   <My:VolunteerIDBoundField DataField="VolunteerID" meta:resourcekey="bfVolunteerID"
                                    ReadOnly="True" SortExpression="v.VolunteerID" />
<%--                                   <asp:BoundField DataField="VolunteerID" meta:resourcekey="bfVolunteerID" SortExpression="v.VolunteerID" />
--%>                                   <asp:BoundField DataField="VolunteerName" meta:resourcekey="bfVolunteerName" SortExpression="v.VolunteerName" />
                                   <asp:TemplateField meta:resourcekey="bfVOrganizationName" SortExpression="oo.VOrganizationName">
                                        <ItemTemplate>
                                            <%#Eval("VOrganizationName") %>
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Center" />
                                    </asp:TemplateField>    
                                    <asp:BoundField DataField="EcolifeID" meta:resourcekey="bfEcolifeID" SortExpression="v.VolunteerID" />
                                    <asp:TemplateField meta:resourcekey="bfLogQuery" >
                                        <ItemTemplate>
                                            <asp:Button ID="btnLogQuery" CssClass="button" SkinID="button" runat="server" meta:resourcekey="btnLogQuery" CommandName="Select" />
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Center" />
                                    </asp:TemplateField> 
                                </Columns>
                            </My:MyGridView>
                        </td>
                    </tr>
                </table>
            </fieldset>
        </td>
    </tr>
</table>

